Skip to content

fix(llm): prevent duplicate version segments in API paths - #528

Merged
stefan-ernst merged 1 commit into
Windshiftapp:mainfrom
luqmanrizal:fix/local-llm-endpoint
Nov 17, 2026
Merged

stefan-ernst merged 1 commit into
Windshiftapp:mainfrom
luqmanrizal:fix/local-llm-endpoint

Conversation

@luqmanrizal

Copy link
Copy Markdown
Contributor

Problem

The Local / Custom LLM endpoint prepends /v1/models for base URL that doesn't end with /v1. This conflicts with some endpoints like https://<host>/v1/unified-model which has /models endpoint at https://<host>/v1/unified-model/models.

Fix

Added a new function url.dropDuplicateVersionPrefix which removes a leading version segment (/v1, /v1beta, ...) from apiPath when the base URL already carries that same version as one of its own path segments.

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@luqmanrizal

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Nov 17, 2026
@stefan-ernst
stefan-ernst merged commit cfd473c into Windshiftapp:main Nov 17, 2026
1 of 2 checks passed
@stefan-ernst

Copy link
Copy Markdown
Contributor

Thanks a lot for the fix! Will ship it with 0.9.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants